import java.util.Scanner;

/**
 * Created by dllo on 18/3/28.
 */
public class Question01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入任意金额");
        int money = scanner.nextInt();
        int raw = money;  //记录原始钱数
        int a1 = money / 100;
        money = money % 100;
        int a2 = money / 50;
        money = money % 50;
        int a3 = money / 20;
        money = money % 20;
        int a4 = money / 10;
        money = money % 10;
        int a5 = money / 5;
        money = money % 5;
        int a6 = money;

        System.out.println(raw + "最少由:" + a1 + "张100元," + a2 + "张50元," + a3 + "张20元," + a4 + "张10元," + a5 + "张5元," + a6 + "张1元 组成");
    }
}
